export const usePagination = <T extends object = {}>() => {
  const tableData = ref([]);
  const loading = ref(false);
  const total = ref(0);
  const queryParams = ref<{ pageSize: number; pageNum: number } & T>({
    pageSize: 10,
    pageNum: 1
  } as { pageSize: number; pageNum: number } & T);

  return {
    tableData,
    loading,
    total,
    queryParams
  };
};
